from katapouet import Matrice
tab = Matrice.Matrice(9,9)
tab.setMot("chat")

tab.printMat()

stop = False
while not stop :
    text = raw_input("rentre ligne, col, lettre, mot : ")
    if text == "quit" :
        stop = True
    else : 
        ligne = int(text.split(",")[0])
        col = int(text.split(",")[1])
        lettre = text.split(",")[2].replace(" ","")
        mot = text.split(",")[3].replace(" ","")
        print tab.joue(ligne, col, lettre, mot)
        tab.printMat()